﻿




using System.Web.Mvc;
using Hotpot.Modules.Blogs.Models;

namespace Hotpot.Modules.Blogs.ModelBinders
{
    public class ArchiveDataModelBinder : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            return new ArchiveData(controllerContext.RouteData.Values["archiveData"] as string);
        }
    }
}
